package net.lcheng.shop.vo;



import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;


/**
 * Created by LV on 2016/7/20.
 */
public class ShopCategoryModel {
    private String categoryId;

    @NotEmpty(message = "分类名不为空")
    private String categoryName;

    @Pattern(regexp = "[0-9]+",message = "排序只能为数字")
    private String orderNum;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }
}
